//
//  MBNotification.m
//  mZero-iOS
//
//  Created by catch on 16/7/19.
//  Copyright © 2016年 Shenzhen Maker Works Technology Co., Ltd. All rights reserved.
//

#import "MBNotification.h"

@implementation MBNotification

+(void)postNotificationName:(NSString *)name object:(id)object{
    [[NSNotificationCenter defaultCenter] postNotificationName:name object:object];
}

+(void)postNotificationName:(NSString *)name object:(id)object userInfo:(NSDictionary *)userInfo{
    [[NSNotificationCenter defaultCenter] postNotificationName:name object:object userInfo:userInfo];
}

+(void)addObserver:(id)observer selector:(SEL)aSelector name:(NSString *)aName{
    [[NSNotificationCenter defaultCenter] addObserver:observer selector:aSelector name:aName object:nil];
}

+(void)removeObserver:(id)observer{
    [[NSNotificationCenter defaultCenter] removeObserver:observer];
}

@end
